package com.lt.shiropro.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lt.shiropro.entity.Role;
import com.lt.shiropro.service.RoleService;
import com.lt.shiropro.mapper.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

/**
* @author root
* @description 针对表【t_role】的数据库操作Service实现
* @createDate 2023-12-04 16:36:38
*/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role>
    implements RoleService{

    @Resource
    private RoleMapper roleMapper;
    /**
     * 通过用户名查询角色list
     * @param username username
     * @return
     */
    @Override
    public Set<String> queryUserRoles(String username) {
        return roleMapper.queryUserRoles(username);
    }
}




